using NUnit.Framework;
using ValidationFramework.Extensions;

namespace ValidationFramework.Tests
{
    [TestFixture]
    public class EnumUserFriendlyNameConverterTest
    {
        private enum Values
        {
            [EnumUserFriendlyString("O_n_e")]
            One,
            [EnumUserFriendlyString("T_w_o")]
            Two,
            TwentyFour
        }



        [Test]
        public void ConvertToString1Test()
        {
            const Values value = Values.One;

            const string expected = "O_n_e";
			var actual = value.ToUserFriendlyString();
            Assert.AreEqual(expected, actual);
        }

        [Test]
        public void ConvertToString2Test()
        {
            const Values value = Values.TwentyFour;

            const string expected = "Twenty Four";
			var actual = value.ToUserFriendlyString();
            Assert.AreEqual(expected, actual);
        }

    }
}
